package com.sf.marathon.soul.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sf.marathon.soul.dao.QueryCommonMapper;
import com.sf.marathon.soul.vo.AreasVO;
import com.sf.marathon.soul.vo.CitiesVO;
import com.sf.marathon.soul.vo.ProvincesVO;

/**
 * 公共查询
 *
 * @author liutao
 * @create 2017-12-15 下午3:49
 */
@Service("queryCommonService")
public class QueryCommonService {
    @Autowired
    QueryCommonMapper mapper;

    public List<ProvincesVO> getProvinces() {
        return mapper.getProvinces();
    }

    public List<CitiesVO> getCities(String provinceid) {
        return mapper.getCities(provinceid);
    }

    public List<AreasVO> getAreas(String cityid) {
        return mapper.getAreas(cityid);
    }
}
